//
//  ModifyPswCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/18.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "ModifyPswCell.h"

@interface ModifyPswCell()

@property (weak, nonatomic) IBOutlet UITextField *oldPswField;
@property (weak, nonatomic) IBOutlet UITextField *nowPswField;
@property (weak, nonatomic) IBOutlet UITextField *nowAgainPswField;

@end
@implementation ModifyPswCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (IBAction)textChanged:(UITextField *)field
{
    if (field.tag == 1) {
        self.info.oldPsw = field.text;
    }else if (field.tag == 2){
        self.info.psw = field.text;
    }else if (field.tag == 3){
        self.info.pswAgain = field.text;
    }

}
- (IBAction)modifyClick:(UIButton *)btn
{
    btn.selected = !btn.selected;
    if ([self.delegate respondsToSelector:@selector(ModifyPswCellModifyPsw:)]) {
        [self.delegate ModifyPswCellModifyPsw:btn.selected];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
